How many times "Hello world!" will be printed? 
int x = 2;
int y = 8;
while(x<(y+5))
{
    System.out.println("Hello world!");
    x+=2;
    y-=2;
}

Posted on by